package com.iraeta.mapper.order;

import com.iraeta.entity.order.GiftOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.iraeta.entity.resulttype.GiftOrderRT;
import com.iraeta.entity.resulttype.GiftOrderTs;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 礼品订单表 Mapper 接口
 * </p>
 *
 * @author chenbin
 * @since 2023-12-22
 */
public interface GiftOrderMapper extends BaseMapper<GiftOrder> {
    GiftOrderRT getGiftOrder(@Param("id") Integer id);
    List<GiftOrderRT> listSelfGiftOrder(@Param("createUserId") Integer createUserId, @Param("orderno") String orderno, @Param("giftName") String giftName);
    GiftOrderTs getTsGiftOrder(@Param("id") Integer id);
    List<GiftOrderTs> listSelfTsGiftOrder(@Param("createUserId") Integer createUserId, @Param("orderno") String orderno);

    //查询待审核的正常订单数据
    List<GiftOrderRT> listDaiShenHeGiftOrder(@Param("statusId")Integer statusId, @Param("orderno") String orderno, @Param("giftName") String giftName, @Param("createusername") String createusername);
    //查询待审核的特殊订单数据
    List<GiftOrderTs> listDaiShenHeTSGiftOrder(@Param("statusId")Integer statusId, @Param("orderno") String orderno, @Param("createusername") String createusername);
    //审核历史数据
    List<GiftOrderRT> listShenHeHistory(@Param("shenheuserid")Integer shenheuserid, @Param("orderno") String orderno, @Param("createusername") String createusername);
}
